package extend04;

class A{
    int num = 21;
}

class B extends A{
    int num = 33;
    public void show() {
        int num = 55;
        System.out.println(num);
        System.out.println(this.num);//遵循就近原则: 局部变量=>本类成员=>父类成员=>....=>Object类
        System.out.println(super.num);
    }
    
}

public class Demo03{
    public static void main(String[] args) {
        B b = new B();
        b.show();
    }
    




}

